package headfirst.factory.factoryMethod.pizzaStore;

import headfirst.factory.factoryMethod.pizzas.*;

/**
 * Pizza商店 芝加哥分店
 *
 * @author lxiaol
 * @date 2021/7/1 14:32
 */
public class ChicagoPizzaStore extends PizzaStore {
    @Override
    public Pizza createPizza(String item) {

        switch (item) {
            case "cheese":
                return new ChicagoStyleCheesePizza();
            case "veggie":
                return new ChicagoStyleVeggiePizza();
            case "clam":
                return new ChicagoStyleClamPizza();
            case "pepperoni":
                return new ChicagoStylePepperoniPizza();
            default:
                return null;
        }

    }
}
